package edu.spec.dengyan.week07.class01.home1.work1;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

/**
 * Author       : MadFrog
 * Date         : 2018/10/11 23:19
 * Description  : 人类
 */
public class Human {
    public String area;        // 地区
    public String mainFood;    // 主食
    public String skinColor;   // 肤色
    // TODO 给language赋初值“人话”
    private String language;    // 语言
    public Human(String language){
        this.language="人话";
    }
    // TODO 默认构造方法，方法里实现输出打印“我是人类”
public Human(){
        System.out.println("我是人类");
    }
    // TODO 自定义构造方法，参数对应4个成员变量的值，方法体完成4个成员变量的初始化
    public Human(String area,String mainFood,String skinColor,String language){
        this.area=area;
        this.mainFood=mainFood;
        this.skinColor=skinColor;
        this.language=language;
    }
    // TODO 4个成员属性的getter和setter


    public String getArea() {
        return area;
    }

    public String getMainFood() {
        return mainFood;
    }

    public String getSkinColor() {
        return skinColor;
    }

    public String getLanguage() {

        return "人话";
    }

    public void setArea(String area) {
        this.area = area;
    }

    public void setMainFood(String mainFood) {
        this.mainFood = mainFood;
    }

    public void setSkinColor(String skinColor) {
        this.skinColor = skinColor;
    }

    public void setLanguage(String language) {
        this.language = language;
    }
    public void speak(){
        System.out.println("我说" +getLanguage());
    }

    public void printLanguage(){
        System.out.println("我说"+this.language);
    }
}
